addToComponent

fun addToComponent(component: AttributeModifiersComponent, slot: AttributeModifierSlot = AttributeModifierSlot.ANY): AttributeModifiersComponent

Deprecated

Scheduled for removal in 0.6.0

adds the stored Attribute and its modifier to a passed Attribute Component builder

Return

AttributeModifiersComponent the new component with the new attribute/modifier pair added

Author

fzzyhmstrs

Since

0.3.1

Parameters

component

AttributeModifiersComponent - to add this attribute/modifier pair to

slot

AttributeModifierSlot - the slot for the attribute, defaults to AttributeModifierSlot.ANY